<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html; charset=utf-8" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>我的订单</title>
	<base href="http://localhost:8081/">
<link type="text/css" rel="stylesheet" href="static/css/style.css" >
<style type="text/css">
	h1 {
		text-align: center;
		margin-top: 200px;
	}
</style>
</head>
<body>
	<div id="header">
			<img class="logo_img" alt="" src="static/img/logo.gif" >
			<div>
				<span>欢迎<span class="um_span">${user.uname}</span>光临尚硅谷书城</span>
				<a href="index.jsp">注销</a>&nbsp;&nbsp;
				<a href="index.jsp">返回</a>
			</div>
	</div>
	<div id="main" class="box_order">
		<table>
			<tr>
				<td><input type="checkbox" id="ckAll"/></td>
				<td>订单号</td>
				<td>订单日期</td>
				<td>订单金额</td>
				<td>订单数量</td>
				<td>订单状态</td>
				<td>订单详情</td>
			</tr>
			<c:choose>
				<c:when test="${empty user.orderList}">
					<tr><td colspan="6">暂无订单</td></tr>
				</c:when>
				<c:otherwise>
					<c:forEach items="${user.orderList}" var="orderList">
						<tr>
							<td><input type="checkbox"name="cid" value="${orderList.id}"></td>
							<td>${orderList.orderNo}</td>
							<td>${orderList.orderDate}</td>
							<td>${orderList.orderMoney}</td>
							<td>${orderList.orderCount}</td>
							<td>${orderList.orderStatus}</td>
							<td><a href="orderItem.action?oper=getOrderDetailList">查看详情</a></td>
						</tr>
					</c:forEach>
				</c:otherwise>
			</c:choose>
		</table>
	</div>
	<div id="bottom">
		<span>
			尚硅谷书城.Copyright &copy;2015
		</span>
	</div>
</body>
</html>